# chapter_1 2 3
a = str("warRior")
print(a)
print(type(a))
print(a.title())
print(a.upper())
print(a.lower())
print(a.isupper())

b = "warrior"
print(a == b)
print(a.casefold() == b.casefold()) # 比较字符串时不需要区别大小写；使用场景：英语单词比对

print(a.center(30, "="))

c = "  zeus   "
print(c.center(30, "="))
print(c.strip().center(30, "="))

name = input("Input your name:")
print("Hello, " + name.title() + ".")
print("Hello, " + name.upper() + ".")
print("Hello, " + name.lower() + ".")